import { IsEmail, IsNotEmpty, IsOptional, IsString } from 'class-validator';

export class CreateApartmentUserDto {
  @IsString()
  @IsOptional()
  nickname?: string;

  @IsString()
  @IsOptional()
  name?: string;

  @IsEmail()
  @IsNotEmpty()
  email: string;

  @IsString()
  @IsNotEmpty()
  password: string;

  @IsString()
  @IsOptional()
  avatarUrl?: string;

  @IsString()
  @IsOptional()
  level?: string = '免费用户';

  @IsString()
  @IsOptional()
  expirationDate?: string;
}
